<?php
require ('include/connect.php');
require ('include/db_sql.php');
require ('include/functions.php');
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$link = db_connect();
$dblink = new mysqlquery();
// 数据库
$mydbname = RepPostVar($_GET['mydbname']);
$mytbname = RepPostVar($_GET['mytbname']);
if (empty($mydbname) || empty($mytbname)) {
    printerror("ErrorUrl", "history.go(-1)");
}
if (isset($_GET['form'])) {
    $form = $_GET['form'];
} else {
    $form = '';
}
if (empty($form)) {
    $form = 'ebakchangetb';
}
$usql = $dblink->query("use `$mydbname`");
$sql = $dblink->query("SHOW FIELDS FROM `" . $mytbname . "`");
require LoadAdminTemp('list_field.php');
db_close();
$dblink = null;